A Meter chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.meter.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="250">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var meter = new RGraph.Meter({
id: 'cvs',
min: 0,
max: 100,
value: 75,
options: {
anglesStart: RGraph.PI + 0.5,
anglesEnd: RGraph.TWOPI - 0.5,
linewidthSegments: 15,
textSize: 16,
strokestyle: 'white',
segmentRadiusStart: 155,
border: 0,
tickmarksSmallNum: 0,
tickmarksBigNum: 0,
adjustable: true,
needleRadius: 135,
textAccessible: false
}
}).on('beforedraw', function (obj)
{
RGraph.clear(obj.canvas, 'white');
}).draw();
};
</script>